Repository navigation
Install the same Solana CLI in every workflow, and drop the dead beta legs - #220
Open
mikemaccana wants to merge 1 commit into
Open
mikemaccana wants to merge 1 commit into
mikemaccana wants to merge 1 commit into
Conversation
… legs #217 moved anchor.yml and anchor-v1.yml to Solana CLI 4.3.2 and left native, pinocchio, quasar and solana-asm on 3.1.14, so the repository disagreed with itself about the toolchain that builds the .so files. All six now install 4.3.2, which is the Agave crate line LiteSVM 0.18.2 holds the examples at. The four move to the same direct download from the GitHub release that #217 already proved green, rather than passing 4.3.2 to heyAyushh/setup-solana. The action would take the version - it has no ceiling, and turns a bare `4.3.2` into `https://release.anza.xyz/v4.3.2/install` - but that is the host with no usable artefact for parts of the 4.x line, and the release asset is a plain static URL that needs no GitHub API call, which is what the deleted "can fail with 429" comments were working around. The beta legs in native, pinocchio and solana-asm tested nothing, and had not for some time. From run 45729216837, job 139606787972: end-action id=__heyAyushh_setup-solana_2.__run_3;outcome=failure;duration_ms=14 Run source build_and_test.sh / solana -V / rustc -V / process_projects "beta" .../7cc2784f-c3b9-4820-9ba4-893e11dec469.sh: line 2: solana: command not found error Process completed with exit code 127 setup-solana 5.9 does not resolve the `beta` channel, so the install fails in 14 ms, and it clears the stable install on its way out. The step after it then dies on `solana -V` before reaching `process_projects`, so no project is ever built or tested. Both steps carry continue-on-error, which reports a failed step as success, so this looked green on every run. They are removed rather than repaired: `process_projects` uses its argument only as a log label, so the beta leg could never have tested anything the stable leg did not. anchor.yml and anchor-v1.yml keep their install step and lose two stale claims in the comment above it - a pointer to native.yml's beta notes, which this commit deletes, and "LiteSVM 0.18.1 resolves solana-* at ~4.3 (see the pins added in 3134c69)", which #218 undid by raising the floor to 0.18.2 and deleting those pins. solana-asm.yml's sbpf note loses the same 0.18.1. The `process_projects "stable"` label and the "with Stable" step names are left alone: nothing now contrasts with them, but renaming reaches into the build script in four files for no behavioural gain. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#217 moved
anchor.ymlandanchor-v1.ymlto Solana CLI 4.3.2 and leftnative.yml,pinocchio.yml,quasar.ymlandsolana-asm.ymlon 3.1.14, so the repository disagreed with itself about the toolchain thatbuilds the
.sofiles. That was my omission. All six now install 4.3.2 — the Agave crate lineLiteSVM 0.18.2 holds the examples at after
#218 and
#219.
anchor.yml,anchor-v1.ymlnative.yml,pinocchio.yml,quasar.yml,solana-asm.ymlsetup-solanaWhy the direct download rather than
setup-solana: 4.3.2Passing the version would have been one line per file, and the action would take it — I read its
source at v5.9: there is no version ceiling, and a bare
4.3.2becomeshttps://release.anza.xyz/v4.3.2/install.But
release.anza.xyzis the host with no usable artefact for parts of the 4.x line, which is why#217 switched to the release asset in the first place. The GitHub asset is also a plain static URL
needing no API call, which is exactly what the deleted "can fail with 429" comments were working
around.
heyAyushh/setup-solanawas last tagged December 2024.The 4.3.2 tarball ships
solana,cargo-build-sbf,cargo-test-sbfandagave-install. All fourworkflows need
solanaonPATH— each runssolana -V— andnative/pinocchiobuild withcargo build-sbf.solana-asmbuilds withsbpf buildandquasarwithquasar build; both keeptheir own install steps untouched.
The beta legs tested nothing
native.yml,pinocchio.ymlandsolana-asm.ymleach hadSetup Solana BetaandBuild and Test with Beta, bothcontinue-on-error: true. I checked before deleting them. From run45729216837, job
139606787972:
Three things there:
setup-solanav5.9 does not resolve thebetachannel, so the install fails in 14 ms.solanais then gone entirely.solana -V, exit 127) and never reachesprocess_projects.No project was built or tested.
continue-on-errorreports a failed step assuccess, which is why this looked green on every run —the step durations give it away: a 52s stable leg followed by a beta leg that finishes in under a
second.
Removed rather than repaired, because
process_projectsuses its$solana_versionargument only asa log label. Both legs run the identical project list with the identical commands, so the beta leg
could never have tested anything the stable leg did not — the most a working version could do is
re-run the same suites under a different CLI.
Comment fixes
anchor.ymlandanchor-v1.ymlkeep their install step and lose two claims this work invalidated:3134c69b)"— Move to LiteSVM 0.18.2 and drop the hand-written Agave 4.3 pins #218 raised the floor to 0.18.2 and deleted those pins.
solana-asm.yml's sbpf note loses the same stale 0.18.1.Testing
CI-only, so CI is the test. Each file parses as YAML (
actionlintis not available in theenvironment I used). Each of the four workflows lists
.github/workflows/<name>.ymlin its ownpaths-filter, so editing the file triggers its own run — please check all four actually ran rather
than taking the summary's word for it.
What to look for:
Install Solana CLIsucceeds, andsolana -Vin the next step prints 4.3.2, not 3.1.14;build-and-test-group-*job green — that is the real test, since those jobs build withcargo build-sbf/sbpf build/quasar buildagainst the newly installed CLI;Audit:
(
setup-solanastill appears in prose, in the comments that explain what the workflows used to do.)Left alone deliberately
The
process_projects "stable"label and the "Build and Test with Stable" step names. Nothingcontrasts with them now, but renaming reaches into the heredoc'd build script in four files for no
behavioural gain. Worth a follow-up if you want the naming tidy.
Generated by Claude Code